package edu.scsu.csci.interceptor;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import edu.scsu.csci.IInterceptor;

/**
 * <p> An implementation of the null object pattern. Done to avoid conditional logic. </p>
 * 
 * @author Maqbool Khan
 * @since jdk 1.5
 * @see	IInterceptor
 */
public class NullInterceptor implements IInterceptor<Object>{

	public EInterceptorFlow preProcess(Object object, ServletRequest request, ServletResponse response) {
		return EInterceptorFlow.DISCARD_REQUEST;
	}

	public EInterceptorFlow postProcess(Object object, ServletRequest request, ServletResponse response) {
		return EInterceptorFlow.DISCARD_REQUEST;
	}

}
